<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitepage
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: Controller.php 2011-05-05 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
class Sitepage_Widget_SlideshowSitepageController extends Engine_Content_Widget_Abstract {

  public function indexAction() {

    //GET PAGE DATAS
    $this->view->show_slideshow_object = $sitepage = Engine_Api::_()->sitepage()->getLising('Featured Slideshow');
    $this->view->sitepage_featured = $sitepage_featured = Zend_Registry::isRegistered('sitepage_featuredslide') ? Zend_Registry::get('sitepage_featuredslide') : null;

    $this->view->num_of_slideshow = count($sitepage);
    if (!(count($sitepage) > 0) || empty($sitepage_featured)) {
      return $this->setNoRender();
    } 
  }
}

?>